package com.skd.mall.order.fegin;


import com.skd.mall.order.vo.OrderItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("mall-cart")
public interface CartServiceFegin {
    @RequestMapping("/{memberId}/getUserCartItem")
    public List<OrderItemVo> getUserCartItem(@PathVariable("memberId") Long memberId);

    @RequestMapping("/updateCartList")
    public void updateCartList(@RequestBody List<Long> skuIdList);

    @RequestMapping("/updateCartLists")
    void updateCartLists(@RequestBody List<Long> skuIds);
}
